﻿using System.Data;
using Mite.Configuration;

namespace Mite.MsSql
{
	public abstract class MsSqlMigrationBase : MigrationBase
	{
		protected MsSqlMigrationBase(MiteEnvironment environment)
			: base(environment)
		{
		}

		#region Nested type: Text

		public class Text : MsSqlColumn
		{
			public Text(string name, bool isNullable)
				: base(name, SqlDbType.Text, 0, 0, false, false, isNullable, false)
			{
				DataType = DbType.String;
			}

			public Text(string name)
				: this(name, true)
			{
			}
		}

		#endregion
	}
}